<template>
  <div class="container">
    <div class="header">
      <div class="header-left">
        <a href="javascript:;" @click="goBack" class="iconfont back-icon"
          >&#xe624;</a
        >
      </div>
      <div class="title">举报成功</div>
    </div>
    <div class="content">
      <div class="msg-icon"></div>
      <div class="msg-text">举报成功,请耐心等待处理!</div>
      <div class="req-number">举报编码 <span>{{view_number}}</span></div>
      <div class="req-password">查询密码 <span>{{view_password}}</span></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ReportSuccessify",
  data() {
    return {
      view_number:this.$route.query.view_number,
      view_password:this.$route.query.view_password
    };
  },
  created() {
    console.log(this.$route.params.view_password);
  },
  beforeDestroy() {},
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="stylus" scoped>
.container {
  overflow: hidden;
  background-color: #fff;
  height: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  height: 0.44rem;
  line-height: 0.44rem;
  background: #256ccb;
  color: #fff;

  .header-left {
    width: 0.4rem;

    .back-icon {
      display: block;
      text-align: center;
      font-size: 0.17rem;
      font-weight: bold;
      color: #fff;
    }
  }

  .title {
    width: 100%;
    text-align: center;
    margin-right: 0.33rem;
    font-size: 0.17rem;
    font-weight: bold;
  }
}

.content {
  margin-top: 0.44rem;
  display: block;
  height: calc(80% - 0.4rem);
  background-color: #fff;
  padding: 0.2rem 0.18rem;

  >div {
    text-align: center;
    margin-top: 20px;

    span {
      color: #256ccb;
    }
  }

  .msg-icon {
    width: 100%;
    height: 0.8rem;
    background: url('~@/assets/images/icon-success.png') center center no-repeat;
    background-size: contain;
  }

  .msg-text {
    font-size: 0.22rem;
    font-weight: bold;
  }

  .req-number {
    width: 90%;
    margin-left: 5%;
    border-radius: 0.22rem;
    height: 0.35rem;
    line-height: 0.35rem;
    border: 1px solid #e3e8ef;
    font-size: 0.16rem;
  }

  .req-password {
    margin-top: 12px;
    width: 90%;
    margin-left: 5%;
    border-radius: 0.22rem;
    height: 0.35rem;
    line-height: 0.35rem;
    border: 1px solid #e3e8ef;
    font-size: 0.16rem;
  }
}
</style>
